package com.af.robot.entity;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@ToString
public class Structure {
    private String name;
    private String absolute;
    private boolean type;
    private String size;
    private String date;

    public JSONObject getJson(){
        JSONObject res = new JSONObject();
        res.put("name",name);
        res.put("absolute",absolute);
        res.put("type",type);
        res.put("size",size);
        res.put("date",date);
        return res;
    }
}
